#-------------------------------------------------------------------------
# Sample make file for IBM VisualAg C++.  To build:
#
#    nmake /a all
#
# If this sample is moved/copied from the PComm samples directory,
# the "pcomm=" line below will need to be changed to point to the
# PComm "SAMPLES" subdirectory.
#
#-------------------------------------------------------------------------

all:      eclsamps.exe
eclsamps: eclsamps.exe

#--- Set to root directory of PComm samples (c:\progra~1\ibm\person~1\samples)
pcomm  = ..\..\..

#debug = /O- /Ti+
debug = /O+ /Ti-
msgs  = /Word+pro+ret+use+cnd
includes = -I $(pcomm)\include

iccflags = /c /Gd- /Sm /Re /ss /Q /Gm+ $(msgs) $(debug) $(includes)

#-------------------------------------------------------------------------
# General way to generate a ".obj" from a ".cpp"
#-------------------------------------------------------------------------
.cpp.obj:
  icc $(iccflags) $*.cpp

#-------------------------------------------------------------------------
# Compile and link ECLSAMPS.EXE
#-------------------------------------------------------------------------
eclsamps.exe:    eclsamps.obj
  ilink eclsamps.obj \
	user32.lib kernel32.lib \
	$(pcomm)\lib\pcseclva.lib \
	/DEBUG /OUT:eclsamps.exe   

eclsamps.obj:  eclsamps.cpp  
